Ipv4 missing

Discussions related to using VirtualBox on Linux hosts.
Post Reply
CryingNewby
Posts: 5
Joined: 3. May 2020, 02:31

Ipv4 missing

Post by CryingNewby »

Hello I'm a web developer just starting with virtualization for a school project I have an public IP Adress that my teacher gived me to log using ssh I have root privilege Host: CentOs 8 Guest: Ubuntu 16.4 (bitnami open edx) I installed virtualbox via cli
Download and Imported Bitnami Open-Edx vm Configured ram size and SATA disc adapter I did virbr0 is the name of my adapter I think

Code: Select all

VBoxManage modifyvm bitnami-edx --bridgeadapter1 virbr0
vboxmanage modifyvm bitnami-edx --nic bridged
I set a port and launch it using

Code: Select all

VBoxManage modifyvm bitnami-edx --vrde on
VBoxManage modifyvm bitnami-edx --vrdemulticon on --vrdeport 3390
VBoxHeadless --startvm bitnami-edx
Everything is okey when I launch the vm

Code: Select all

Oracle VM VirtualBox Headless Interface 6.1.6
(C) 2008-2020 Oracle Corporation
All rights reserved.
But when I do

Code: Select all

VBoxManage guestproperty enumerate bitnami-edx 
to get my ipv4 adress I don't find it and I searched in virtualbox forum it should be something like (this is output from another user in internet)

Code: Select all

perry@perry-desktop:~$ VBoxManage guestproperty enumerate Mint-15-64
Name: /VirtualBox/GuestInfo/OS/Product, value: Linux, timestamp: 1370009149222639000, flags:
Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 192.168.1.104, timestamp: 1370009149227994000, flags:
Name: /VirtualBox/HostInfo/GUI/LanguageID, value: en_US, timestamp: 1370009146380884000, flags:
Name: /VirtualBox/GuestInfo/Net/0/MAC, value: 0800270C0D2E, timestamp: 1370009149229092000, flags:
Name: /VirtualBox/GuestInfo/OS/ServicePack, value: , timestamp: 1370009149224510000, flags:
Name: /VirtualBox/HostInfo/VBoxVerExt, value: 4.2.51_OSE, timestamp: 1370009126635988000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/1/Status, value: Up, timestamp: 1369953184685184000, flags:
Name: /VirtualBox/GuestAdd/Vbgl/Video/SavedMode, value: 1280x1024x32, timestamp: 1369964084012969000, flags:
Name: /VirtualBox/GuestInfo/Net/1/V4/Broadcast, value: 192.168.56.255, timestamp: 1369953184683930000, flags:
Name: /VirtualBox/GuestInfo/Net/0/V4/Netmask, value: 255.255.255.0, timestamp: 1370009149228716000, flags:
Name: /VirtualBox/GuestInfo/Net/1/V4/Netmask, value: 255.255.255.0, timestamp: 1369953184684351000, flags:
Name: /VirtualBox/GuestInfo/Net/1/MAC, value: 0A0027000000, timestamp: 1369953184684787000, flags:
Name: /VirtualBox/GuestInfo/OS/Version, value: #33-Ubuntu SMP Thu May 16 15:17:14 UTC 2013, timestamp: 1370009149224109000, flags:
Name: /VirtualBox/GuestAdd/VersionExt, value: 4.2.51_OSE, timestamp: 1370009149225618000, flags:
Name: /VirtualBox/GuestAdd/Revision, value: 46096, timestamp: 1370009149226034000, flags:
Name: /VirtualBox/HostGuest/SysprepExec, value: , timestamp: 1370009126635621000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/OS/LoggedInUsers, value: 1, timestamp: 1370009149226849000, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestInfo/Net/0/Status, value: Up, timestamp: 1370009149229449000, flags:
Name: /VirtualBox/HostGuest/SysprepArgs, value: , timestamp: 1370009126635647000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestAdd/Version, value: 4.2.51, timestamp: 1370009149225198000, flags:
Name: /VirtualBox/HostInfo/VBoxRev, value: 46335, timestamp: 1370009126636002000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/Net/0/V4/Broadcast, value: 192.168.1.255, timestamp: 1370009149228349000, flags:
Name: /VirtualBox/HostInfo/VBoxVer, value: 4.2.51, timestamp: 1370009126635974000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/GuestInfo/OS/LoggedInUsersList, value: mint, timestamp: 1370009149226477000, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestInfo/Net/1/V4/IP, value: 192.168.56.1, timestamp: 1369953184683504000, flags:
Name: /VirtualBox/GuestInfo/Net/Count, value: 1, timestamp: 1370036532250998000, flags:
Name: /VirtualBox/GuestInfo/OS/Release, value: 3.8.0-22-generic, timestamp: 1370009149223609000, flags:
Name: /VirtualBox/GuestInfo/OS/NoLoggedInUsers, value: false, timestamp: 1370009149227209000, flags: TRANSIENT, TRANSRESET
Name: /VirtualBox/GuestAdd/HostVerLastChecked, value: 4.2.51, timestamp: 1369964122673525000, flags:
Im sorry if I missed something Im a total noob with linux and this things
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Ipv4 missing

Post by scottgus1 »

Ipv4 missing
Post by CryingNewby » May 3rd, 2020, 7:30 am
CryingNewby wrote:VBoxManage modifyvm bitnami-edx --bridgeadapter1 virbr0
Did you solve your bridged adapter problem you posted about here: viewtopic.php?f=1&t=97996
Struggling beginner with VirtualBox and networking
Postby CryingNewby » May 3rd, 2020, 5:24 am
CryingNewby
Posts: 5
Joined: 3. May 2020, 02:31

Re: Ipv4 missing

Post by CryingNewby »

Hello scottgus1 and thanks for your amazing help
Yes I fixed it before I saw the answer I'm so happy because this is my first time using all of this and with a little research and the help of you guys I think i'm doing fine
Thank you all
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Ipv4 missing

Post by scottgus1 »

CryingNewby wrote:I fixed it before I saw the answer
Please report in your posts that you have solved the posted problem, as soon as possible afterwards, so others don't waste their time trying to help you fix it after you have already fixed it. Took me a half hour to research that answer and type it out.

The extradata about the guest's IP address is caused by the Guest Additions. Have you installed the Guest Additions inside the guest?
CryingNewby
Posts: 5
Joined: 3. May 2020, 02:31

Re: Ipv4 missing

Post by CryingNewby »

I did
And what are guests adition? This is a predefined vm by Bitnami there is everything already set for me and when I use it on my laptop using virtualBox it's work without any problem it's njust that the GUI give me no problem, not like using vboxmanage wish is pretty new for me I don't know if I should set a NAT adapter also? or just the bridge one here is my Showvminfo

Code: Select all

Name:                        bitnami-edx
Groups:                      /
Guest OS:                    Other/Unknown (64-bit)
UUID:                        95894eea-83ae-4158-9dbf-240d8b2f88c8
Config file:                 /root/VirtualBox VMs/bitnami-edx/bitnami-edx.vbox
Snapshot folder:             /root/VirtualBox VMs/bitnami-edx/Snapshots
Log folder:                  /root/VirtualBox VMs/bitnami-edx/Logs
Hardware UUID:               95894eea-83ae-4158-9dbf-240d8b2f88c8
Memory size                  8000MB
Page Fusion:                 disabled
VRAM size:                   12MB
CPU exec cap:                100%
HPET:                        disabled
CPUProfile:                  host
Chipset:                     piix3
Firmware:                    BIOS
Number of CPUs:              2
PAE:                         enabled
Long Mode:                   enabled
Triple Fault Reset:          disabled
APIC:                        enabled
X2APIC:                      disabled
Nested VT-x/AMD-V:           disabled
CPUID Portability Level:     0
CPUID overrides:             None
Boot menu mode:              message and menu
Boot Device 1:               Floppy
Boot Device 2:               DVD
Boot Device 3:               HardDisk
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
RTC:                         local time
Hardware Virtualization:     enabled
Nested Paging:               enabled
Large Pages:                 disabled
VT-x VPID:                   enabled
VT-x Unrestricted Exec.:     enabled
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   None
State:                       aborted (since 2020-05-03T15:44:10.000000000)
Graphics Controller:         VBoxVGA
Monitor count:               1
3D Acceleration:             disabled
2D Video Acceleration:       disabled
Teleporter Enabled:          disabled
Teleporter Port:             0
Teleporter Address:
Teleporter Password:
Tracing Enabled:             disabled
Allow Tracing to Access VM:  disabled
Tracing Configuration:
Autostart Enabled:           disabled
Autostart Delay:             0
Default Frontend:
VM process priority:         default
Storage Controller Name (0):            SCSI
Storage Controller Type (0):            LsiLogic
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  16
Storage Controller Port Count (0):      16
Storage Controller Bootable (0):        on
Storage Controller Name (1):            SATA Controller
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      30
Storage Controller Bootable (1):        on
Storage Controller Name (2):            IDE Controller
Storage Controller Type (2):            PIIX4
Storage Controller Instance Number (2): 0
Storage Controller Max Port Count (2):  2
Storage Controller Port Count (2):      2
Storage Controller Bootable (2):        on
SCSI (0, 0): /root/VirtualBox VMs/bitnami-edx/bitnami-edx-ironwood.2-8-linux-debian-9-x86_64-disk1.vmdk (UUID: 9a5c98b3-27e1-46cd-901d-f53dba45b568)
SATA Controller (0, 0): /root/VirtualBox VMs/bitnami-edx/openedx.vdi (UUID: e4e55d8d-4cd1-4888-93e4-eab7d1cf91e4)
NIC 1:                       MAC: 0800270A0A7E, Attachment: Bridged Interface 'virbr0', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:                       disabled
NIC 3:                       disabled
NIC 4:                       disabled
NIC 5:                       disabled
NIC 6:                       disabled
NIC 7:                       disabled
NIC 8:                       disabled
Pointing Device:             PS/2 Mouse
Keyboard Device:             PS/2 Keyboard
UART 1:                      disabled
UART 2:                      disabled
UART 3:                      disabled
UART 4:                      disabled
LPT 1:                       disabled
LPT 2:                       disabled
Audio:                       enabled (Driver: PulseAudio, Controller: AC97, Codec: STAC9700)
Audio playback:              disabled
Audio capture:               disabled
Clipboard Mode:              disabled
Drag and drop Mode:          disabled
VRDE:                        enabled (Address 0.0.0.0, Ports 3390, MultiConn: on, ReuseSingleConn: off, Authentication type: null)
Video redirection:           disabled
OHCI USB:                    disabled
EHCI USB:                    disabled
xHCI USB:                    disabled

USB Device Filters:

<none>

Bandwidth groups:  <none>

Shared folders:<none>

Capturing:                   not active
Capture audio:               not active
Capture screens:             0
Capture file:                /root/VirtualBox VMs/bitnami-edx/bitnami-edx.webm
Capture dimensions:          1024x768
Capture rate:                512kbps
Capture FPS:                 25kbps
Capture options:

Guest:

Configured memory balloon size: 0MB
And this is my ifconfig

Code: Select all

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.100.0.103  netmask 255.255.255.0  broadcast 10.100.0.255
        inet6 fe80::9b87:dad1:cb05:8449  prefixlen 64  scopeid 0x20<link>
        ether 4c:d9:8f:5a:53:ab  txqueuelen 1000  (Ethernet)
        RX packets 754070018  bytes 131045909013 (122.0 GiB)
        RX errors 0  dropped 2524446  overruns 0  frame 0
        TX packets 3553367  bytes 255106290 (243.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17

eno2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 4c:d9:8f:5a:53:ac  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 18

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 253  bytes 21989 (21.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 253  bytes 21989 (21.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:ef:97:b3  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Ipv4 missing

Post by scottgus1 »

CryingNewby wrote:what are guests adition?
See section 4 in the manual. Guest Additions give the guest OS more capabilities to work better in a virtual machine. You will need the command lines to load the Guest Additions ISO provided by Virtualbox into the guest's CD drive then run the installer in the guest OS.
CryingNewby wrote:I don't know if I should set a NAT adapter also? or just the bridge one
What network setup you need depends on what kind of communication you want. Did you look over the Pictures tutorial I posted and the links to the manual therein?

Explain to us rubber-duck-style what you want to achieve, after reading the manual and tutorial, and you might come across the right network setup you need.
Post Reply