Migrate from real server to virtual

Rodney W. Grimes freebsd-rwg at pdx.rh.CN85.dnsmgr.net
Mon Feb 26 15:08:02 UTC 2018


> 
> ? 
> 
>  --- Original message ---
> From: "Rodney W. Grimes" <freebsd-rwg at pdx.rh.cn85.dnsmgr.net>
> Date: 26 February 2018, 16:17:44
> 
>  
> > > Hi, colleagues.
> > > 
> > > There is a server running with Windows Server 2008 R2 and I am attempting launch this server in virtual environment as a back up. But there is one big problem - I can not shutdown this server.
> > > My first step was creating a VHD image with help of Disk2vhd. Then a converted this image from VHD to raw image with qemu.
> > > I don't know boot setting of BIOS.
> > > 
> > > With this command I am unable to start the server.
> > > 
> > > bhyve -c 2 -s 0,hostbridge -s 3,ahci-hd,/vm/img/disk1.raw -s 4,ahci-cd,/VM/distro/null.iso -s 10,virtio-net,tap1 -s 20,fbuf,tcp=192.168.0.254:5900,w=800,h=600,wait -s 21,lpc -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -m 6G -H -w windows2
> > > 
> > > Boot Filed. UEFI Hard Drive
> > > 
> > > Any ideas?
> > 
> > You mention how you start it, what are you using to try and stop it?
>   
> Ctrl+C then bhyvectl --vm windows2 --destroy

Ok, thats to clean up after a crashed VM, not the way to shutdown
a running system.

> > Also what version of FreeBSD are you running as a host?
> 
> FreeBSD 11.1-STABLE r329364

Thanks, wanted to make sure this was a 10.x system.

> > Are you saying you can not connect to the vnc on 192.168.0.254:5900
> > and tell windows to shutdown?
> 
> I can connect to the 192.168.0.254:5900, but error is displayed:   Boot Filed. UEFI Hard Drive

Boot Failed?   So windows never started.
Your not having a shutdown problem your having a start up failure.  

What is the output of:
	file /vm/img/disk1.raw
	file /VM/distro/null.iso

And do you really have /vm and /VM?  Or is that a typo?


-- 
Rod Grimes                                                 rgrimes at freebsd.org


More information about the freebsd-virtualization mailing list