Virtualbox i Nat Network

TLDR: (a la màquina virtual)

sudo rm /etc/machine-id && sudo systemd-machine-id-setup

https://www.thegeekdiary.com/centos-rhel-7-how-to-change-the-machine-id/

  • si treballes amb virtualbox
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    i vols "easy-peasy" networking, te cal "crear un nou machine-id" peer facilitar-li la vida al dhcpserver de virtualbox

un exemple de xarxa nat amb reenviament de ports

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

VBoxManage natnetwork add --netname nextcloudnet --network 10.19.100.0/24 --enable --dhcp on
VBoxManage natnetwork modify --netname nextcloudnet --port-forward-4 "ssh1:tcp:[]:30022:[10.19.100.4]:22"
VBoxManage natnetwork modify --netname nextcloudnet --port-forward-4 "ssh2:tcp:[]:31022:[10.19.100.5]:22"
VBoxManage natnetwork modify --netname nextcloudnet --port-forward-4 "http:tcp:[]:30080:[10.19.100.4]:80"