Skip to contentSkip to conversation

QEMU, increase graphics memory

Qemu-devel jenia.ivlev 2 participants 3 messages May 14, 2017 – May 16, 2017

lore
Share & tools
lore
#0 lore raw

I wanted to get more graphics memory on my QEMU Windows client.

I decided to install **Virtio** drivers for QEMU to achieve that purpose.

I create an *imagine_file* like this:

qemu-img create -f raw image_file 4G

Also, I ran the windows-install like this:

qemu-system-x86_64 -enable-kvm -m 4G -cdrom "OS.iso" -boot order=c -drive file=image_file,if=virtio

But when Windows ran, it didn't find any hard-drive (the *image_file* basically). It asked for some drivers instead. I think it wanted drivers to communicate with the hard-drive (*image_file*).

Running the install without Virtio works though:

qemu-system-x86_64 -enable-kvm -m 4G -cdrom "OS.iso" -boot order=d -drive file=image_file,format=raw

The difference betweeen the two commands is:

order=c vs order=d

and

if=virtio vs format=raw

How do I install windows with Virtio in QEMU?

My original goal is to get 512 MB of graphics memory on Windows (running as a guest in QEMU). Unfortunately, by default (no Virtio) I get 8MB of video memory which is not enough for my purposes

Thanks

P.S. My OS is Arch-Linux

#1 lore raw

Re: [Qemu-devel] Installing Windows with virtio (was: QEMU, increase graphics memory)

Quoted 41 lines · jenia.ivlev

I wanted to get more graphics memory on my QEMU Windows client.

I decided to install **Virtio** drivers for QEMU to achieve that purpose.

I create an *imagine_file* like this:

qemu-img create -f raw image_file 4G

Also, I ran the windows-install like this:

qemu-system-x86_64 -enable-kvm -m 4G -cdrom "OS.iso" -boot order=c -drive file=image_file,if=virtio

But when Windows ran, it didn't find any hard-drive (the *image_file* basically). It asked for some drivers instead. I think it wanted drivers to communicate with the hard-drive (*image_file*).

Running the install without Virtio works though:

qemu-system-x86_64 -enable-kvm -m 4G -cdrom "OS.iso" -boot order=d -drive file=image_file,format=raw

The difference betweeen the two commands is:

order=c vs order=d

and

if=virtio vs format=raw

How do I install windows with Virtio in QEMU?

Quoted 8 lines

My original goal is to get 512 MB of graphics memory on Windows (running as a guest in QEMU). Unfortunately, by default (no Virtio) I get 8MB of video memory which is not enough for my purposes

Thanks

P.S. My OS is Arch-Linux

Since you use ArchLinux, wiki.archlinux.org is rather helpful, as always. Yes, you need virtio drivers:

https://wiki.archlinux.org/index.php/QEMU#New_Install_of_Windows

Fam

author
#2 lore raw

Re: [Qemu-devel] Installing Windows with virtio (was: QEMU, increase graphics memory)

Hello Fam.

I managed to installed Windows with the *Virtio* drivers. Thanks for your tip.

It has made a change in that I got 2X more graphics memory. But not nearly enough. I need 512 and now I have 16.

How do I specify to Virtio how much memory to allocate?

Thanks
Jenia

Quoted 62 lines · Fam Zheng
Quoted 8 lines · jenia.ivlev

I wanted to get more graphics memory on my QEMU Windows client.

I decided to install **Virtio** drivers for QEMU to achieve that purpose.

I create an *imagine_file* like this:

Quoted 7 lines

qemu-img create -f raw image_file 4G

Also, I ran the windows-install like this:

    qemu-system-x86_64 -enable-kvm -m 4G -cdrom "OS.iso" -boot order=c

-drive file=image_file,if=virtio

Quoted 10 lines

But when Windows ran, it didn't find any hard-drive (the *image_file* basically). It asked for some drivers instead. I think it wanted drivers to communicate with the hard-drive (*image_file*).

Running the install without Virtio works though:

    qemu-system-x86_64 -enable-kvm -m 4G -cdrom "OS.iso" -boot order=d

-drive file=image_file,format=raw

Quoted 16 lines

The difference betweeen the two commands is:

order=c vs order=d

and

if=virtio vs format=raw

How do I install windows with Virtio in QEMU?

Quoted 8 lines

My original goal is to get 512 MB of graphics memory on Windows (running as a guest in QEMU). Unfortunately, by default (no Virtio) I get 8MB of video memory which is not enough for my purposes

Thanks

P.S. My OS is Arch-Linux

Since you use ArchLinux, wiki.archlinux.org is rather helpful, as always. Yes,
you need virtio drivers:

https://wiki.archlinux.org/index.php/QEMU#New_Install_of_Windows

Fam