qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Fwd: Why does this work on kvm but not soft emulation?


From: Aryeh Friedman
Subject: [Qemu-devel] Fwd: Why does this work on kvm but not soft emulation?
Date: Sat, 25 Jan 2014 00:17:48 -0500



---------- Forwarded message ----------
From: Aryeh Friedman <address@hidden>
Date: Fri, Jan 24, 2014 at 12:19 PM
Subject: Why does this work on kvm but not soft emulation?
To: address@hidden


First 3 steps are on Intel running Ubunutu 12.04.3 LTS the rest are on AMD running FreeBSD 10-RELEASE

1. I create 10G drive (raw file format)
2. I install ubuntu onto it with:

#!/bin/bash
#
# Handwritten script

# Net set up
bridge=br0
tap=$(sudo tunctl -u $(whoami) -b)
ip link set $tap up
sleep 1s
brctl addif $bridge $tap

# call hyper v
kvm -drive format=raw,if=virtio,file=ubu -net nic,vlan=0,model=virtio -net tap,vlan=0,ifname=$tap,script=no -m 4096 -smb 3 -vnc :0 -disp
lay none -cdrom ubu.iso

# net break down
brctl delif $bridge $tap
ip link set $tap down
tunctl -d $tap

3. Shut down the VM from within the guest OS and kill the process

4. Copy the disk image over to the FreeBSD machine and start it with:


#!/bin/sh
#
# Generated by PetiteCloud

ifconfig tap37 destroy
ifconfig tap37 create
ifconfig tap37 up
sleep 5
ifconfig bridge0 addm tap37 up

qemu-system-x86_64 -drive format=raw,if=virtio,file=ubu -net nic,model=virtio -net tap,ifname=tap37 -smb 1 -m 2048 -vnc :0 -display none
echo $!>/var/run/petitecloud/rc5adn3358

5. The guest OS gets as far as disk checks and then dies (this does not happen under kvm)

--
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org



--
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]