lost and found ( for me ? )

install BackTrack Linux 5 R3 x86_64 (BT5R3 ) within KVM

Here's an explanation of how to install BackTrack Linux 5 R3 within KVM 

KVM host info

# lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description:    Linux Mint 12 Lisa
Release:        12
Codename:       lisa

# uname -ri
3.2.0-33-generic x86_64

# libvirtd --version
libvirtd (libvirt) 0.9.8

# kvm --version
QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice Bellard

install BT5R3 with virt-manager.
BT5R3 is Ubuntu 12.04 base.

boot BT

after booting the BT , type startx

click “Install BackTrack”

installing BT into HDD

after booting BT from vDHH.

user : root
credential : toor

[ allow ssh access ]

generate SSH key

root@bt:~# sshd-generate

start ssh daemon
root@bt:~# /etc/init.d/ssh start

[ how to access to BT via virsh console ]

add a serial port on BT VM , if you have not added to

on the KVM host
virsh # dumpxml BT5

   <serial type='pty'>
     <source path='/dev/pts/16'/>
     <target port='0'/>
     <alias name='serial0'/>

make /etc/init/ttyS0.conf on the BT VM
root@bt:~# cat /etc/init/ttyS0.conf
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

exec /sbin/getty -L 115200 ttyS0 vt102

edit /boot/grub/menu.lst

add writable permission
root@bt:~# chmod u+w /boot/grub/grub.cfg

edit grub.cfg
add red lines.
serial -speed=115200 -unit=0 -word=8 -parity=no -stop=1
terminal -timeout=10 serial

menuentry 'Ubuntu, with Linux 3.2.6' --class ubuntu --class gnu-linux --class gnu --class os {
       insmod ext2
       set root='(hd0,1)'
       search --no-floppy --fs-uuid --set 818802dc-9073-4b13-93a8-046e382edb46
       linux   /boot/vmlinuz-3.2.6 root=UUID=818802dc-9073-4b13-93a8-046e382edb46 ro   text splash vga=791 console=ttyS0,115200n8
       initrd  /boot/initrd.img-3.2.6

reboot the BT

connect to the BT5 VM over virsh console
virsh # console BT5
Connected to domain BT5
Escape character is ^]

BackTrack 5 R3 - 64 Bit bt ttyS0
bt login: root
Last login: Tue Nov 27 22:40:14 JST 2012 on ttyS0

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.