# Installing an Emulated Alcatel-Lucent on Ubuntu/libvirt
With much help from Alastair Johnson of AlcaLu.
I installed the sros image as a libvirt image on a system already running libvert.
## Creating a livirt xml File
I hacked together this xml definition for the VM
```
vm0.iad.rg.net:/root# cat alcalu0.xml
alcalu0.rpki.net01e79522-5f9b-4fcc-bc9e-768051158606419430441943041TiMOS: address=198.180.150.13/24@active static-route=0.0.0.0/1@198.180.150.126 static-route=128.0.0.0/1@198.180.150.126 license-file=cf3:/timos.pie.b80.txthvmdestroyrestartdestroy/usr/bin/kvmlibvirt-01e79522-5f9b-4fcc-bc9e-768051158606
```
## Starting the VM
Then it was time to start the VM
```
virsh start alcalu0.rpki.net
```
And then go to the console
```
virsh console alcalu0.rpki.net
```
It was pingable, but the console showed horrible response, like a minute to log in, despite
```
vm0.iad.rg.net:/root# uptime
11:57:49 up 129 days, 17:34, 2 users, load average: 0.74, 0.91, 0.98
```
## Password Configuration
I did not create user names yet, but changing the password seemed critical
```
A:vRR# password
Enter current password:
Enter new password:
Re-enter new password:
```
## System Name
```
A:vRR# configure system name alcalu0
*A:alcalu0# configure system contact "Randy Bush "
*A:alcalu0# admin save
Writing configuration to cf3:\config.cfg
Saving configuration ... OK
Completed.
```
## Set Up IPv4 Basic Addressing, DNS, …
IPv4 addressing and default routes were in the xml file used to create the image.
For DNS you at least need a primary server
```
A:alcalu0# bof primary-dns 198.180.150.8
*A:alcalu0# bof save
Writing BOF to cf3:/bof.cfg ... OK
Completed.
```
## SSH Needs a Bit of Tweaking
```
A:alcalu0# show system security ssh
===============================================================================
SSH Server
===============================================================================
Administrative State : Enabled
Operational State : Up
Preserve Key : Disabled
SSH Protocol Version 1 : Disabled
SSH Protocol Version 2 : Enabled
DSA Host Key Fingerprint : 42:cc:bf:29:5f:11:5e:ab:20:3b:82:f5:2e:8d:72:77
RSA Host Key Fingerprint : e9:6f:fd:93:d3:88:80:d0:e6:1f:62:88:8a:36:e5:52
-------------------------------------------------------------------------------
Connection Username
Version Cipher ServerName Status
-------------------------------------------------------------------------------
No entries found
===============================================================================
A:alcalu0# configure system security ssh preserve-key
*A:alcalu0# configure system security ssh no server-shutdown
*A:alcalu0# configure system login-control idle-timeout disable
*A:alcalu0# admin save
```
At this point, I could ssh in and not have to deal with the broken console issue.
## License File
I whacked in the license file by
```
A:alcalu0# file vi cf3:/timos.pie.b80.txt
```
and pasting in the file content.
Then tell the system where the file is
```
A:alcalu0# bof license-file cf3:/timos.pie.b80.txt
*A:alcalu0# bof save
Writing BOF to cf3:/bof.cfg ... OK
Completed.
```