Tag Info

Hot answers tagged

10

qemu-kvm -hdb <device>, where <device> is the USB stick (e.g. /dev/sdb), should do it (tested with Ubuntu 12.04 on an USB stick and it works). You will need write permission to the device (i.e. be root or change its permissions).


7

You cannot chroot into different architecture. By chrooting, you are executing the binaries (from the chroot) on your architecture. Executing ARM binaries on x86 (and x86_64 in that matter) would lead to "Exec format error". If you want to run binaries from different architecture you will need an Emulation, Qemu is a good candidate for this, but you will ...


7

From qemu's help: Linux/Multiboot boot specific: -kernel bzImage use 'bzImage' as kernel image -append cmdline use 'cmdline' as kernel command line -initrd file use 'file' as initial ram disk -dtb file use 'file' as device tree image A quick test here using Arch's kernel/initrd (qemu -kernel /boot/vmlinuz-linux -initrd /boot/initramfs-linux.img) ...


7

QEMU's -kernel, -boot, and -initrd are BIOS only. They are completely incompatible with EFI (currently). Update: OVMF supports -boot since r13683, and supports -kernel -append -initrd since r13923. Download OVMF-0.1+r14071-1.1.x86_64.rpm or newer version. Extract bios.bin from the rpm: rpm2cpio OVMF-0.1+r14071-1.1.x86_64.rpm | cpio -idmv Specify firmware ...


7

CtrlAltu Source: http://linux.die.net/man/1/qemu-kvm In the future, you can also try to use man (in a terminal). This gives you the user manual. You can seek a word by pressing "/" (without the quotes) and then cycle through the references using "n": man qemu /restore <enter> n n To quit, type "q".


6

I don't know why exactly, but Renan's answer didn't quite work for me. KVM said to me it couldn't find a bootable drive (despite the usb partition being marked as such). However I've found another solution. Get the USB device VendorID:ProductID with lsusb. Example: $ lsusb ... Bus 002 Device 007: ID 0781:5406 SanDisk Corp. Cruzer Micro U3 Pass that to ...


6

It did work out. The kernel booted fine. The error is: Unable to mount root fs on unknown-block(0.0) The kernel is looking for a root filesystem. You need to provide one. You can't interact with a kernel without running processes on it, and the initial process has to be loaded from somewhere: when the kernel starts, it mounts a filesystem (the root ...


6

As it happens, it looks like a bug in debian's package of grub. The -kernel grub.img approach works if I only include the grub modules I need upon grub-mkimage. The -bios grub.bin works with the newer grub package from experimental (2.00-7). However, the grub.bin that comes with it is not very useful. It comes with a memdisk that comes with the grub.cfg. ...


5

Seems my question is answered in the libvirt manual. One needs to specifically ensure that the same IP is handed out via DHCP each time. Here's how this can be specified: <network> … <ip address="192.0.2.1" netmask="255.255.255.0"> <dhcp> <range start="192.0.2.128" end="192.0.2.254"> <host ...


5

Afaik, libvirt doesn't know what "fully booted" means (neither do I). You could make a service that connect to your host (or another machine) during boot. Or you could try connecting in a loop to your guest, for example with ssh. Another solution would be to rely on an exisiting service that communicate with the host, such as vdagent. You could easily write ...


4

Not sure what more you can do; according to http://www.claunia.com/qemu/objectManager.php?sClass=version&iId=305 AIX 6.1 will not install under QEMU.


4

Copy kvm virtual machines is not complicated: First, you need to shutdown the virtual machine, then you need to find the disk image where the virtual machine is stored and finally copy it to another place (cp /path/to/disk_image /new_path/). If the virtual machine is stored on its own partition, use dd if=/dev/PARTITION of=/path/to/backup/backup.img bs=1M ...


4

The kernel is telling you, that it doesn't know which device holds the root file system. Your loop mount isn't necessary. (Unmount it before continuing). Try a command like qemu -kernel bzImage -hda disk.img -append root=/dev/sda The -hda disk.img parameter tells qemu to simulate a disk device based on your disk.img. The -append root=/dev/sda switch is ...


4

You can do that in the console with virsh domif-setlink domain interface-device state and check it with virsh domifstat domain interface-device Have a look at the man page for details.


4

KVM is a kernel API for virtualisation. It doesn't deal with serial ports. qemu is a machine (PC and other) emulator which can use kvm for improving virtualisation performance. It can emulate a standard 8250 UART serial port (isa-serial) or paravirtualised serial port (virtio-serial). In qemu, you define your machine with command-line arguments that specify ...


3

QEMU comes with the qemu-img program to convert between image formats. qemu-img convert -f qcow2 -O raw my-qcow2.img /dev/sdb


3

virt-install ... --disk [path to your existing image] --import ... --import Skip the OS installation process, and build a guest around an existing disk image. The device used for booting is the first device specified via "--disk" or "--file". --disk [path] path - A path to some storage media to use, existing or not. Existing media can be a file or block ...


3

That usually indicates that you don't have a bootable hard disk or CD/DVD image attached. Check your virtual machine's configuration and make sure you have a bootable ISO for a LiveCD or installer mounted. That message could also indicate that you're attempting to boot a 64-bit operating system in a 32-bit virtualized environment. Make sure your VM is ...


3

Qemu runs on top of a host operating system. A bootloader such as Grub doesn't provide enough services for Qemu. Qemu runs as an ordinary process inside the host, it needs the host kernel to perform memory management, to access filesystems, etc. If you meant to run an OS compiled for a different processor architecture, that won't work. The virtual machine ...


3

Keyboard method You can release focus using the Left Ctrl+ Left Alt. Notice you have to use the left keys! Focus free method See my question I posted on this exact thing on ServerFault. The Q&A is titled: Any way to release focus on a KVM guest in virt-manager without having to click Ctrl_L + Alt_L?. This will allow you to no longer have to use the ...


3

Instead of using an image file (or in addition to an image file) you can use a block device (LVM or loop device) and pass this to the VM (which sees it as disk drive). You can mount it from the guest and from the host. But you should make sure this is not done simultaneously. The obvious disadvantage: This volume does not grow with the need. But you can ...


2

I found the answer here: http://www.pantz.org/software/ssh/badwindowerrorwithqemu.html. Use the -Y option with ssh instead of -X, to enable trusted X11 forwarding.


2

Qemu is not the right tool for the job. Qemu emulates a whole computer, including the CPU. This is useful to run a virtual machine on where the virtual hardware is different from the host hardware, but this is not required here. Furthermore, emulating an amd64 CPU is likely to be slower than emulating an i386 CPU. This alone might explain the difference ...


2

Painfully slow might be in relation to your I/O. I came to find out the hard way that this might be remedied by telling libvirt to use the virtio. To verify mine: # virsh list Id Name State ---------------------------------- 11 ca running 13 new_box running ..... # virsh dumpxml ca|awk ...


2

After looking a bit through the Linaro wiki, especially this page I decided to download the source package for Linaro version of Qemu, which apparently has a lot of enhancements for ARM that did not make it into the upstream Qemu available for Ubuntu Natty, and build it myself. It works like a charm with the Beagleboard image provided also by Linaro(I ...


2

if the host doesn't support AMD-V, you cannot use kvm there, all you can use is qemu in emulation mode. Even if you have the kvm module loaded, you also need kvm_amd, and it will not load without AMD-V. virtio is irrelevant here, if kvm isn't running, you will not be able to improve performance anyhow.


2

Yes, you can run x86 binaries in QEmu with QEmu running on an ARM processor. It will be very slow, because QEmu does software emulation of the x86 processor, and you may find yourself short of RAM, but it can work. The qemu-user package contains the virtual machine itself, i.e. an emulator of an x86 processor and some hardware devices and a Linux kernel ...


2

After printing the "Syncing disk" message, fdisk calls sync(2) syscall, which causes all buffered modifications to file metadata and data to be written to the underlying file systems. It is expected that this operation can take some time, but it shouldn't hang forever. If it does, you might see in which function in the kernel it hangs in ...


2

why not just make an rc script that runs after the others and logs a message of "FULLY BOOTED". Then make syslog forward to the vm host, and wait for the message to appear in the logfiles on the host. thats what i'd do, anyhow.


2

Why are you creating the disk manually? You should use VirtualBox to create the disk while creating the VM, unless you plan to use it together with qemu. (why?) Here, when adding disks, use the existing disk that you created.



Only top voted, non community-wiki answers of a minimum length are eligible