Ich kann da kein Problem erkennen, 178 ist der IP Kreis vom Heimnetz und 56 ist "Host only". Die Trennung willst du doch. 😎
VirtualBox 6.1.x - Host auf Guest zugreifen - kein Router
Anmeldungsdatum: Beiträge: 2209 |
|
(Themenstarter)
Anmeldungsdatum: Beiträge: 3284 |
Mir fehlt die IP Adresse für den "Host only" Adapter. Eine alte Lösung für Debian habe ich gefunden, wie übertrage ich diese auf Guest Ubuntu 22.04.1? Troubleshooting Common Issues My VM does not have an IP address for the host-only network interface Depending on the operating system of the VM, the new network interface may not be automatically enabled. To fix this, we should first find the name of the host-only network interface in your VM using [guest]$ ip addr This lists all the interfaces and corresponding IP addresses. Find the interface that does not have an IP address and note its name (by default this should be enp0s8). Now edit the network configuration file /etc/network/interfaces and add the host-only interface to enable it. Open the file as sudo, and append the following lines to the end (change enp0s8 if your interface name is different): allow-hotplug enp0s8 iface enp0s8 inet dhcp Reboot your VM and try finding your IP address again. Bei Guest Debian 11 Buster funktioniert diese Lösung: ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:81:e3:da brd ff:ff:ff:ff:ff:ff inet 192.168.178.126/24 brd 192.168.178.255 scope global dynamic enp0s3 valid_lft 863992sec preferred_lft 863992sec inet6 fe80::a00:27ff:fe81:e3da/64 scope link valid_lft forever preferred_lft forever 3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:80:c8:f0 brd ff:ff:ff:ff:ff:ff inet 192.168.56.101/24 brd 192.168.56.255 scope global dynamic enp0s8 valid_lft 591sec preferred_lft 591sec inet6 fe80::a00:27ff:fe80:c8f0/64 scope link valid_lft forever preferred_lft forever enp0s8 bekommt die IP-Adresse 192.168.56.101 . Das Debian 11 Guest ist mit "ssh undine@192.168.56.101" erreichbar. ################ Jetzt muss ich irgendwie netplan von meinem Guest Ubuntu 22.04 nutzen. Wie bekommt mein NIC Device enp0s8 von Guest Ubuntu 22.04 eine IP-Adresse? Wie setze ich das um? https://wiki.ubuntuusers.de/Netplan/ Ist für Ubuntu 18.04 https://forum.ubuntuusers.de/topic/probleme-mit-netplan-2/#post-9129691 Wie muss meine 00-installer-config.yaml aussehen? sudo nano 00-installer-config.yaml |
(Themenstarter)
Anmeldungsdatum: Beiträge: 3284 |
Lösung: /etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: ethernets: enp0s3: dhcp4: true ethernets: enp0s8: dhcp4: true version: 2 Check udo netplan --debug apply Übernahme sudo netplan apply Es wird eine IP-Adresse für das NIC Device enp0s8 vergeben, bei mir 192.168.56.3 . ssh undine@192.168.56.3 |
(Themenstarter)
Anmeldungsdatum: Beiträge: 3284 |
Welche Vorteile hat die Lösung [VirtualBox] Configure an Ubuntu 22.04 / 20.04 Virtual Machine for Web Development (Complete Guide)? https://www.wpdiaries.com/virtualbox-for-web-development/#trendingCollapse Bei mir sieht das erheblich einfacher aus, so wollte ich es haben, oder habe ich etwas übersehen? Greetz undine |