Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I create a Windows Server 2008 instance for KVM with this command:

kvm -m 2048 -cdrom win2008.iso -drive file=windowserver.img,if=virtio -boot d -drive file=.virtio-win-0.1-22.iso,index=3,media=cdrom -device virtio-net-pci -net nic -net user -nographic -vnc :5

The command returns with the following error:

Warning: nic virtio-net-pci.0 has no peer

How do I fix this?

share|improve this question
    
That's not an error, it's a warning. What's the actual problem? –  mgorven Jun 10 '12 at 3:10
add comment

1 Answer

up vote 0 down vote accepted

I don't think that you want the -device parameter. If you want to use the virtio NIC, add the model option to the -net parameter like this:

-net nic,model=virtio

Your entire command would look like this then:

kvm -m 2048 -cdrom win2008.iso -drive file=windowserver.img,if=virtio -boot d -drive file=.virtio-win-0.1-22.iso,index=3,media=cdrom -net nic,model=virtio -net user -nographic -vnc :5
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.