You are not logged in.

#1 2017-02-05 03:34:30

jesc516
Member
From: LI,NY
Registered: 2015-01-26
Posts: 72

using qemu-system-x86_64 command hangs

I would like to boot the windows boot media in order to install windows as a vm but using the following command does nothing. If I do Ctrl+C I get

^Cqemu-system-x86_64: terminating on signal 2

I hear the fans for the gpu turn on and thats it.

This is the command I am using:

$ qemu-system-x86_64 -cdrom win.iso -m 4096 -enable-kvm -drive file=win10.img,format=raw -cpu host -smp cores=2 -usbdevice tablet -vga std

I am using the following to create the raw disk file:

qemu-img create -f raw win10.img 30G

libvirtd is running:

$ systemctl status libvirtd.service 
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; disabled; vendor preset: disabled)
   Active: active (running) since Sat 2017-02-04 22:28:51 EST; 5s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
 Main PID: 2583 (libvirtd)
    Tasks: 18 (limit: 4915)
   CGroup: /system.slice/libvirtd.service
           ├─2583 /usr/bin/libvirtd
           ├─2702 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
           └─2703 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper

I can install windows using virt-manager but I would like to learn how to use it from command line. What the hell am I missing?

Last edited by jesc516 (2017-02-05 03:34:55)

Offline

#2 2017-02-05 14:09:20

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: using qemu-system-x86_64 command hangs

you haven't specified a boot order,   add -boot order d .

I also suggest you check https://wiki.archlinux.org/index.php/QE … io_drivers , virtio drives are much faster and switching to them after install can be tricky.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB