Portál AbcLinuxu, 12. května 2025 10:28
Řešení dotazu:
Sám provozuju qemu-kvm přes bridge a tap ... parametr "-net nic,model=e1000 -net tap,ifname=tapX,script=no".
Tedy postup je "tunctl -t tapX -u user", přidání do bridge, buď dhcp nebo nastavení IP adresy na bridgi a ve virtuálnim stroji shodné.
Na wifině (wlan0, intel wifina) mi bridge nejde, na ethernetu jo.
Ok ... mně se v gentoo a qemu podařilo přes 127.0.0.1 dostat do virtuálu ...
1) qemu -boot d -cdrom abclinuxu-live.iso -m 1024 -net user,hostfwd=tcp:127.0.0.1:5555-:22 -net nic,model=e1000
2) puštění ssh serveru (např. viz faq)
3)
$ ssh -v root@127.0.0.1 -p 5555 OpenSSH_5.3p1, OpenSSL 0.9.8l 5 Nov 2009 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to 127.0.0.1 [127.0.0.1] port 5555. debug1: Connection established. debug1: identity file /home/XXXX/.ssh/identity type -1 debug1: identity file /home/XXXX/.ssh/id_rsa type -1 debug1: identity file /home/XXXX/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_4.0 debug1: match: OpenSSH_4.0 pat OpenSSH_4* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5 none debug1: kex: client->server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: checking without port identifier The authenticity of host '[127.0.0.1]:5555 ([127.0.0.1]:5555)' can't be established. RSA key fingerprint is c6:e1:05:0a:72:66:a2:1a:aa:e0:77:cb:3b:0a:a8:1e. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[127.0.0.1]:5555' (RSA) to the list of known hosts. debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /home/XXXX/.ssh/identity debug1: Trying private key: /home/XXXX/.ssh/id_rsa debug1: Trying private key: /home/XXXX/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: password root@127.0.0.1's password: debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. Linux 2.6.12.2. 19:00:58 [root@abc ~]#Čili ... forwarding (/proc/sys/net/ipv4/ip_forward) máte zaplej? Firewall nebrzdí?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.