You are not logged in.

#1 2013-10-18 06:24:22

Blah91
Member
Registered: 2013-10-02
Posts: 2

Qemu networking issue

Hello, I could use some help with Qemu and networking related issues.

First problem: I need to attach Windows 7 virtual machine to my LAN network, but I can't get it to work. My (home)server is working as a router, so it has two network cards. First one connects to a switch (LAN) and second one to the internet. I'm using netctl, dnsmasq and ufw to do all the necessary networking. I'v tried to create a bridge, but every time I start it, I lose connection to my server (I'm using SSH) and I have to reboot it to restore connection. If I use default network settings in qemu virtual machine, internet works in the virtual machine, but some softwares do not work as intended (lag and connection losses). I want to attach it to the real LAN and give it a LAN ip for better performance. What I should do?

Second problem: ArchWiki says that I should never run a virtual machine as root, but I can't run the virtual machine with KVM enabled without sudo/root. Should I do something differently or just use "-runas username" and run the machine with sudo?

Warning: QEMU should never be run as root. If you must launch it in a script as root, you should use the -runas option to make QEMU drop root privileges

Any help would be appreciated.

Offline

Board footer

Powered by FluxBB