Есть клиент в гостевой ОС WinXP и сервер на хостовой Linux. Сеть устанавливается через опцию -net user. Другие варианты -net не работают. Как можно соединить клиент с сервером в этом случае?
Есть в мануале такая вот глава. Вроде понятно что в гостевой ОС писать. Тогда что и где писать в хостовой ОС?
3.7.3 Using the user mode network stack
By using the option `-net user' (default configuration if no `-net' option is specified), QEMU uses a completely user mode network stack (you don't need root priviledge to use the virtual network). The virtual network configuration is the following:
QEMU VLAN <------> Firewall/DHCP server <-----> Internet | (10.0.2.2) | ----> DNS server (10.0.2.3) | ----> SMB server (10.0.2.4)
The QEMU VM behaves as if it was behind a firewall which blocks all incoming connections. You can use a DHCP client to automatically configure the network in the QEMU VM. The DHCP server assign addresses to the hosts starting from 10.0.2.15.
In order to check that the user mode network is working, you can ping the address 10.0.2.2 and verify that you got an address in the range 10.0.2.x from the QEMU virtual DHCP server.
Note that ping is not supported reliably to the internet as it would require root priviledges. It means you can only ping the local router (10.0.2.2).
When using the built-in TFTP server, the router is also the TFTP server.
When using the `-redir' option, TCP or UDP connections can be redirected from the host to the guest. It allows for example to redirect X11, telnet or SSH connections.
Я настраивал -net tun но qemu ни в какую не может его сконфигурировать под себя. -net nic,vlan=0 -net user,vlan=0 вместе работают. Появляется сетевое соединение и работает DNS Но тк не знаю что писать как шлюз для винды ничего не пингуется - "Сеть недоступна".
Всё вроде как надо настроено. Хосты даже могут попинговать друг друга. DNS висит на 127.0.0.1 и его гостевая OC не видит (там указан 198.163.1.1) . Хотя везде доступ разрешил.