# VM; Hyper-V crashed

**URL:** <https://help.nextcloud.com/t/vm-hyper-v-crashed/29134>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Created:** [March 18, 2018, 12:02pm UTC](https://help.nextcloud.com/t/vm-hyper-v-crashed/29134 "2018-03-18T12:02:54Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![3Dscrewer](https://help.nextcloud.com/user_avatar/help.nextcloud.com/3dscrewer/32/8672_2.png) [@3Dscrewer](https://help.nextcloud.com/u/3Dscrewer)\
**Post date:** [March 30, 2018, 10:17am UTC](https://help.nextcloud.com/t/vm-hyper-v-crashed/29134/10 "2018-03-30T10:17:29Z")

</div>

The problem is imho the network manager used in the vm.  
Since SSH isn’t working anymore, you have to use the console of the VM.  
Reboot, or in my case I have to switch off …  
If the UBUNTU screen is coming up press a key … I have used cursor down.  
There is something like emergency shell, choose that, you are already root.  
go to /etc/network there you have to edit interfaces, of course you can type  
nano /etc/network/interfaces  
This is the interfaces of the VM

```
 source /etc/network/interfaces.d/*

 # The loopback network interface
 auto lo eth0
 iface lo inet loopback
 
 # The primary network interface
 iface eth0 inet static
 pre-up /sbin/ethtool -K eth0 tso off <----- This Lines are causing the problems
 pre-up /sbin/ethtool -K eth0 gso off <------ This too
 # Fixes https://github.com/nextcloud/vm/issues/92:
 pre-up ip link set dev eth0 mtu 1430 <------ This too

 # Best practice is to change the static address
 # to something outside your DHCP range.
 address 192.168.178.30
 netmask 255.255.255.0
 gateway 192.168.178.1

# This is an autoconfigured IPv6 interface
# iface eth0 inet6 auto

# Exit and save:	[CTRL+X] + [Y] + [ENTER]
# Exit without saving:	[CTRL+X]

```

This is a standard interfaces, you can use it, but you have to give the NIC in your VM a static MAC adress and your router must give the VM always the same IP

```
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

 source /etc/network/interfaces.d/*

  # The loopback network interface
  auto lo
 iface lo inet loopback

 # The primary network interface
 auto eth0
 iface eth0 inet dhcp
 # This is an autoconfigured IPv6 interface
 iface eth0 inet6 auto

```

or you can try to use it in this way

auto lo  
iface lo inet loopback

auto eth0

iface eth0 inet static  
address [XXX.XXX.XXX.XXX](http://XXX.XXX.XXX.XXX)#your IP of the VM  
netmask 255.255.255.0  
gateway [XXX.XXX.XXX.XXX](http://XXX.XXX.XXX.XXX) # your Router IP  
dns-nameservers 8.8.8.8 [XXX.XXX.XXX.XXX](http://XXX.XXX.XXX.XXX) [XXX.XXX.XXX.XXX](http://XXX.XXX.XXX.XXX) # a good idea to use your router IP as DNS too

EDIT

The 20GB pay Version didn’t never work for me. Also I have more than 200K of Music Files in the Cloud, a lots of Pictures and so on.  
For me the best way was  
download the ubuntu server cd  
create a virtual disk (fixed Size is much faster)… even better use a separate HDD and unmount it in Windows Diskmanager, so you can connect it in the VM Properties.  
connect the ubuntu.iso to the VM and install a minimal virtual version.  
During setup use directly the user ncadmin and name the computer as the subdomain you are using i.e. cloud if your domain is [cloud.xxxxxx.com](http://cloud.xxxxxx.com)  
then use this  
[https://github.com/nextcloud/vm#installation](https://github.com/nextcloud/vm#installation)

Imho the script is now modified and will run without problems.

Regards

---

_[View the full topic](https://help.nextcloud.com/t/vm-hyper-v-crashed/29134)._
