You are not logged in.

#1 2015-11-25 12:51:52

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Virtmanager + Qemu + Windows 7 -> How to create network connection?

Hey there, my current setup:

Virtmanager
QEMU+KVM
dnsmasq
bridge-utils
openbsd-netcat
freerdp
.... Windows 7 Ultimate x64 as VM
Host: Arch + GNOME + NetworkManager

The Windows VM runs fine but has no network connection. Also I can't connect to it via RDP (probably because it has no network connectivity).

In Virtmanager I have set the network adapter to:

Network source: Host device wlp6s0: macvtap
Source mode: Bridge
Device model: rtl8139

I could also choose:

Network source: Vitual network "default": NAT (inactive)

but that gives me some errors and in any case, bridged mode should be just fine?

Do I need to install another dependency? Or is bridged mode just buggy? If so, should I use the "NAT" method? But that would require some more dependencies ?

Thanks !

Also: The freerdp error I get, in case it is relevant:

sudo xfreerdp /u:vbox /p:password_here /admin /cert-ignore +clipboard /v:localhost:5555
[12:30:36:369] [3231:3232] [ERROR][com.freerdp.legacy] - loading channel cliprdr
[12:30:36:371] [3231:3232] [ERROR][com.freerdp.legacy] - freerdp_set_last_error 0x2000C
[12:30:36:371] [3231:3232] [ERROR][com.freerdp.legacy] - Error: protocol security negotiation or connection 

Last edited by Utini (2015-11-25 12:53:45)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#2 2015-11-25 17:24:02

testtube
Member
Registered: 2015-11-23
Posts: 11

Re: Virtmanager + Qemu + Windows 7 -> How to create network connection?

http://wiki.libvirt.org/page/Guest_can_ … macvtap%29

Last edited by testtube (2015-11-25 17:25:39)

Offline

#3 2015-11-25 20:21:27

Utini
Member
Registered: 2015-09-28
Posts: 481
Website

Re: Virtmanager + Qemu + Windows 7 -> How to create network connection?

Thanks but in my case the VM isn't able to do any network connection/communication at all.. also not to the outside.

Maybe I should choose smth else as network mode? But which one is the best solution ?

@edit: the NAT connection works fine and my VM can connect to the internet. But I still can't connect with freerdp, I guess because I need a bridged connection?

sudo xfreerdp /u:vbox /p:password_here /admin /cert-ignore +clipboard /v:localhost:5555

[21:31:40:660] [22630:22631] [ERROR][com.freerdp.legacy] - loading channel cliprdr
[21:31:40:662] [22630:22631] [ERROR][com.freerdp.legacy] - freerdp_set_last_error 0x2000C
[21:31:40:662] [22630:22631] [ERROR][com.freerdp.legacy] - Error: protocol security negotiation or connection failure

@edit2:

This command works:

sudo xfreerdp /u:Vbox /p:password_here /admin /cert-ignore +clipboard /v:192.168.122.149 /w:1920 /h:1080

But the lan ip changes everytime, shouldn't "localhost" work as well ? Thanks !

Last edited by Utini (2015-11-25 20:50:18)


Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF

Offline

#4 2015-11-25 22:11:42

testtube
Member
Registered: 2015-11-23
Posts: 11

Re: Virtmanager + Qemu + Windows 7 -> How to create network connection?

libvirt macvtap should work but is not as easy/nice as bridged mode in others like virtualbox. if Win VM can't access ethernet that way, can't tell you why from this.

in libvirt the default NAT mode is most appropriate for most cases and it should be all you need. you have full host<->guest communication through 192.168.122.1 (host). for ethernet to get accesss to VM you have to port forward using iptables script.

to get static IP assignment you can assign IP to VM MAC with DHCP in network XMLs under /etc/libvirt/qemu/network + 'virsh net-define xxx.xml', see libvirt docs.

Offline

Board footer

Powered by FluxBB