Perhaps there are gurus who can help me.
I need to deploy on Amazon AWS specific OS, based on linux.
But there is a problem with the network connection.
I have run the instance on Debian Jessie and setup virtualbox, create a guest system by CLI, connect additional network interface on instance and associate with new ElasticIP. How do I assign to guests a new IP without NAT?
I can not import a virtual machine, as kernel is not compatible with AWS.
Code: Select all
# cat /etc/debian_version
8.7
Code: Select all
# virtualbox -h
Oracle VM VirtualBox Manager 4.3.36_Debian
Code: Select all
# ifconfig
eth0 Link encap:Ethernet HWaddr 0a:95:3f:cb:3b:a1
inet addr:172.31.40.4 Bcast:172.31.47.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:9001 Metric:1
RX packets:3952 errors:0 dropped:2 overruns:0 frame:0
TX packets:4480 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1127721 (1.0 MiB) TX bytes:3271866 (3.1 MiB)
eth1 Link encap:Ethernet HWaddr 0a:f0:e3:0b:8e:bf
inet addr:172.31.36.228 Bcast:172.31.47.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:9001 Metric:1
RX packets:114 errors:0 dropped:0 overruns:0 frame:0
TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6860 (6.6 KiB) TX bytes:11452 (11.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Code: Select all
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
post-up ip rule add from 172.31.36.228 table default
post-up ip route add default via 172.31.32.1 dev eth1 table default
pre-down ip rule del from 172.31.36.228 table default
pre-down ip route del default via 172.31.32.1 dev eth1 table default
Code: Select all
# vboxmanage showvminfo "test"
Name: test
Groups: /
Guest OS: Other Linux (32-bit)
UUID: afe8a72f-58cc-4ea3-852b-c483ead7a80b
Config file: /root/VirtualBox VMs/test/test.vbox
Snapshot folder: /root/VirtualBox VMs/test/Snapshots
Log folder: /root/VirtualBox VMs/test/Logs
Hardware UUID: afe8a72f-58cc-4ea3-852b-c483ead7a80b
Memory size: 512MB
Page Fusion: off
VRAM size: 16MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: on
Long Mode: off
Synthetic CPU: off
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): DVD
Boot Device (2): HardDisk
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: off
Time offset: 0ms
RTC: local time
Hardw. virt.ext: on
Nested Paging: on
Large Pages: off
VT-x VPID: on
VT-x unr. exec.: on
State: running (since 2017-02-17T07:51:04.410000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0): SATA Controller
Storage Controller Type (0): IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 30
Storage Controller Port Count (0): 30
Storage Controller Bootable (0): on
Storage Controller Name (1): IDE Controller
Storage Controller Type (1): PIIX4
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 2
Storage Controller Port Count (1): 2
Storage Controller Bootable (1): on
SATA Controller (0, 0): /root/test.vdi (UUID: 8a6c0d19-0950-4119-82c4-8b8ae5d6c937)
NIC 1: MAC: 080027E8FC65, Attachment: Bridged Interface 'eth1', 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
LPT 1: disabled
LPT 2: disabled
Audio: disabled
Clipboard Mode: disabled
Drag'n'drop Mode: disabled
Video mode: 720x400x0 at 0,0
VRDE: enabled (Address 0.0.0.0, Ports 3333, MultiConn: off, ReuseSingleConn: off, Authentication type: external)
VRDE port: 3333
Video redirection: disabled
VRDE property: TCP/Ports = "3333"
VRDE property: TCP/Address = <not set>
VRDE property: VideoChannel/Enabled = <not set>
VRDE property: VideoChannel/Quality = <not set>
VRDE property: VideoChannel/DownscaleProtection = <not set>
VRDE property: Client/DisableDisplay = <not set>
VRDE property: Client/DisableInput = <not set>
VRDE property: Client/DisableAudio = <not set>
VRDE property: Client/DisableUSB = <not set>
VRDE property: Client/DisableClipboard = <not set>
VRDE property: Client/DisableUpstreamAudio = <not set>
VRDE property: Client/DisableRDPDR = <not set>
VRDE property: H3DRedirect/Enabled = <not set>
VRDE property: Security/Method = "rdp"
VRDE property: Security/ServerCertificate = <not set>
VRDE property: Security/ServerPrivateKey = <not set>
VRDE property: Security/CACertificate = <not set>
VRDE property: Audio/RateCorrectionMode = <not set>
VRDE property: Audio/LogPath = <not set>
USB: disabled
EHCI: disabled
USB Device Filters:
<none>
Available remote USB devices:
<none>
Currently Attached USB Devices:
<none>
Bandwidth groups: <none>
Shared folders: <none>
VRDE Connection: active
Clients so far: 2
Start time: 2017/02/17 07:51:10 UTC
Sent: 2385851 Bytes
Average speed: 446 B/s
Sent total: 2385851 Bytes
Received: 41821 Bytes
Speed: 7 B/s
Received total: 41821 Bytes
User name: root
Domain: WORKGROUP
Client name: WS
Client IP: 192.168.150.151
Client version: 7601
Encryption: RDP4
Video capturing: not active
Capture screens: 0
Capture file: /root/VirtualBox VMs/test/test.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25
Guest:
Configured memory balloon size: 0 MB
OS type: Linux
Additions run level: 0
Guest Facilities:
No active facilities.
Thanks in advance for your help.